<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Error</title>
    <!-- 添加简单的样式 -->
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding-top: 50px;
        }
        h1 {
            color: #d9534f;
        }
        span {
            display: block;
            margin-bottom: 10px;
        }
        a{
            text-decoration: none;
            color: red;
        }
    </style>
</head>
<body>
    <h1>自定义全局异常处理器</h1>
    <!-- 显示具体的异常信息 -->
    <span th:if="${msg}" th:text="${msg}"></span>
    <span>您没有权限访问该资源，请联系管理员或重试...</span>
    <!-- 添加返回主页的链接 -->
    <a href="/hello">返回主页</a>
</body>
</html>